package com.itheima.volatitle;

public class Boy extends Thread {
    @Override
    public void run() {
        try {
            Thread.sleep(1000);
            MyDemo.money -= 10000;
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
